import 'package:flutter/material.dart';
import 'package:flutter_floating/floating/assist/floating_slide_type.dart';
import 'package:flutter_floating/floating/floating.dart';
import 'package:flutter_floating/floating/manager/floating_manager.dart';
import 'package:v50art/widget/FloatingWidget.dart';

class FloatingService {
  static Floating floatingOne = floatingManager.createFloating(
      "1",
      Floating(const FloatingWidget(),
          top: 20,
          bottom: 20,
          left: 20,
          right: 20,
          slideType: FloatingSlideType.onLeftAndTop,
          isShowLog: true));
  static void create(BuildContext context) {
    floatingOne.open(context);
  }
}
